home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _11394F6CA65D49A9BC396E248494C068 < prev    next >
Encoding:
Text File  |  2004-01-06  |  5.6 KB  |  197 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.     
  3. local WalkParticles = 
  4.     {
  5.         {--dust
  6.             focus = 0,
  7.             speed = 0.25,
  8.             start_color = {0.89,0.69,0.4},
  9.             end_color = {1,1,1},
  10.             count = 7, --default 5
  11.             size = 0.3, 
  12.             size_speed=0.2,
  13.             rotation = {x = 0.0, y = 0.0, z = 4},
  14.             gravity = {x = 0.0, y = 0.0, z = 0},
  15.             lifetime=2,
  16.             blend_type = 0,
  17.             tid = System:LoadTexture("textures\\clouda2.dds"),
  18.             frames=0,
  19.         },
  20.  
  21.     }
  22. Materials["mat_sandbag"] = {
  23.     type="sandbag",
  24. -------------------------------------    
  25.     PhysicsSounds=PhysicsSoundsTable.Soft,
  26. -------------------------------------    
  27.     projectile_hit = CommonEffects.common_projectile_hit,
  28.     mortar_hit = CommonEffects.common_mortar_hit,
  29.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  30.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  31.     grenade_hit = CommonEffects.common_grenade_hit,
  32.  
  33.     bullet_hit = {
  34.         sounds = {
  35.             {"Sounds/Bullethits/bsand1.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/Bullethits/bsand2.wav",SOUND_UNSCALABLE,200,5,60},
  37.             {"Sounds/Bullethits/bsand3.wav",SOUND_UNSCALABLE,200,5,60},
  38.             {"Sounds/Bullethits/bsand4.wav",SOUND_UNSCALABLE,200,5,60},
  39.             },
  40.         decal = { 
  41.             texture = System:LoadTexture("Textures/Decal/default.dds"),
  42.             scale = 0.05,
  43.             },
  44.         particleEffects = {
  45.             name = "bullet.hit_sand.a",
  46.             },
  47.         },
  48.  
  49.     pancor_bullet_hit = {
  50.         sounds = {
  51.             {"Sounds/Bullethits/bsand1.wav",SOUND_UNSCALABLE,200,5,60},
  52.             {"Sounds/Bullethits/bsand2.wav",SOUND_UNSCALABLE,200,5,60},
  53.             {"Sounds/Bullethits/bsand3.wav",SOUND_UNSCALABLE,200,5,60},
  54.             {"Sounds/Bullethits/bsand4.wav",SOUND_UNSCALABLE,200,5,60},
  55.             },
  56.         decal = { 
  57.             texture = System:LoadTexture("Textures/Decal/default.dds"),
  58.             scale = 0.05,
  59.             },
  60.         particleEffects = {
  61.             name = "bullet.hit_sand_pancor.a",
  62.             },
  63.         },
  64.  
  65.     melee_slash = {
  66.         sounds = {
  67.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,185,5,30},
  68.             --{"sounds/weapons/machete/machetesand2.wav",SOUND_UNSCALABLE,255,5,30},
  69.             --{"sounds/weapons/machete/machetesand3.wav",SOUND_UNSCALABLE,255,5,30},
  70.         },
  71.         particles = 
  72.             {
  73.                 { --HitSparksTrail
  74.                 focus = 0.0,
  75.                 color = {1,1,1},
  76.                 speed = 2.0,
  77.                 count = 5,
  78.                 size = 0.010, 
  79.                 size_speed=0,
  80.                 gravity={x=0,y=0,z=-5},
  81.                 lifetime=0.1,
  82.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  83.                 tail_length = 0.3,
  84.                 frames=0,
  85.                 blend_type = 2
  86.                 },
  87.                 { --HitStonesDark
  88.                 focus = 1,
  89.                 speed = 2,
  90.                 start_color = {1,1,1},
  91.                 end_color = {1,1,1}, 
  92.                 count = 8, --default 3
  93.                 size = 0.01, 
  94.                 size_speed=0,
  95.                 gravity = {x = 0.0, y = 0.0, z = -3},
  96.                 rotation = {x = 0.0, y = 0.0, z = 15},
  97.                 lifetime=0.75,
  98.                 frames=1,
  99.                 blend_type = 0,
  100.                 bouncyness = 0.5,
  101.                 tid = System:LoadTexture("textures\\Sprites\\stone1.dds"),
  102.                 },
  103.                 { --HitStonesLight
  104.                 focus = 1,
  105.                 speed = 2,
  106.                 start_color = {1,1,1},
  107.                 end_color = {1,1,1}, 
  108.                 count = 6, --default 2
  109.                 size = 0.01, 
  110.                 size_speed=0,
  111.                 gravity = {x = 0.0, y = 0.0, z = -3},
  112.                 rotation = {x = 0.0, y = 0.0, z = 50},
  113.                 lifetime=0.750,
  114.                 frames=1,
  115.                 blend_type = 0,
  116.                 bouncyness = 0.5,
  117.                 tid = System:LoadTexture("textures\\Sprites\\stone2.dds"),
  118.                 },                
  119.             {--hitsmoke
  120.                  focus = 0,
  121.                 start_color = {0.89,0.69,0.4},
  122.                 end_color = {1,1,1},
  123.                 speed = 0.1,
  124.                 count = 5, --default 3
  125.                 size = 0.01, 
  126.                 size_speed=0.01,
  127.                 gravity = {x = 0.0, y = 0.0, z = 0.1},
  128.                 rotation = {x = 0.0, y = 0.0, z = 2},
  129.                 lifetime=1.25,
  130.                 tid = System:LoadTexture("textures/clouda2.dds"),
  131.                 frames=0,
  132.                 blend_type = 0,
  133.             },    
  134.         },
  135.     },
  136.  
  137.  
  138. -------------------------------------
  139.     
  140.     player_walk = {
  141.         sounds = {
  142.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,140,10,60},
  143.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,140,10,60},
  144.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,140,10,60},
  145.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,140,10,60},
  146.         },
  147.         particles = WalkParticles,
  148.     },
  149.     player_run = {
  150.         sounds = {
  151.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,200,10,60},
  152.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,200,10,60},
  153.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,200,10,60},
  154.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,200,10,60},
  155.         },
  156.         particles = WalkParticles,
  157.     },
  158.     player_crouch = {
  159.         sounds = {
  160.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,120,10,60},
  161.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,120,10,60},
  162.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,120,10,60},
  163.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,120,10,60},
  164.         },
  165.         particles = WalkParticles,
  166.     },
  167.     player_prone = {
  168.         sounds = {
  169.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,120,10,60},
  170.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,120,10,60},
  171.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,120,10,60},
  172.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,120,10,60},
  173.         },
  174.         particles = WalkParticles,
  175.     },
  176.     player_walk_inwater = CommonEffects.player_walk_inwater,
  177. -------------------------------------
  178.     player_land = {
  179.         sounds = {
  180.             --sound , volume , {min, max}
  181.             --NOTE volume and min max are optional
  182.              {"sounds/doors/dooropen.wav"},
  183.              {"sounds/doors/dooropen.wav"},
  184.             
  185.         },
  186.     },
  187.     gameplay_physic = {
  188.         piercing_resistence = 15,
  189.         friction = 1,
  190.         bouncyness= -2, -- default 0
  191.     },
  192.  
  193.     AI = {
  194.         fImpactRadius = 5,
  195.     },
  196.             
  197. }